22c56a89235eaa229af5d88e93bdbc26628a07ec,sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceTypes.java,ResourceTypes,getAllWithPropertyKey,#String#,87
Before Change
}
public Collection<ResourceType> getAllWithPropertyKey(final String propertyKey) {
return Collections2.filter(typeByQualifier.values(), new Predicate<ResourceType>() {
public boolean apply(@Nullable ResourceType input) {
return input != null && input.hasProperty(propertyKey);
}
});
}
public Collection<ResourceType> getAllWithPropertyValue(final String propertyKey, final String propertyValue) {
After Change
}
public Collection<ResourceType> getAllWithPropertyKey(final String propertyKey) {
return Collections2.filter(typeByQualifier.values(), new PropertyKeyPredicate(propertyKey));
}
private static class StringPropertyValuePredicate implements Predicate<ResourceType> {